/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('productcatinfo', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    title: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    category_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    sort: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    description: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    introduction: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    info: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    video: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    extra: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    is_default: {
      type: DataTypes.INTEGER(1),
      allowNull: true,
      defaultValue: '1'
    },
    is_special: {
      type: DataTypes.INTEGER(1).UNSIGNED.ZEROFILL,
      allowNull: true,
      defaultValue: '0'
    }
  }, {
    tableName: 'productcatinfo'
  });

  Model.associate = function() {

  }

  return Model;
};
